import { ILoginState } from './login/login-types';
import { ISystemState } from './main/system/system-types';
import { ICommonState } from './main/common/common-types';
import { IDashBoardState } from './main/analysis/dashboard-type';

// 根state的接口
export interface IRootState {
  name: string;
  age: number;
  departmentList: any[];
  roleList: any[];
  menuList: any[];
}

// 根state与它的child的state
export interface IRootWithModule {
  loginModule: ILoginState; // 这里的名字一定要跟store的module的属性写的一样
  systemModule: ISystemState;
  commonModule: ICommonState;
  dashBoardModule: IDashBoardState;
}

// 是为了在使用的时候有提示
export type IStoreType = IRootState & IRootWithModule;
